package models;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name="adpo")
public class Adpo extends Model{
//532234438、、一节六点开始，二节全部，三节0--7点
	@OneToMany(mappedBy="adpo")
	public Set<Advert> adverts = new HashSet<Advert>();  //广告信息
	@Column(name="adp_name",length=50)
	public String adpName;                               //广告位名
	@Column(name="adp_wid")
	public int adpWid;                                   //宽度
	@Column(name="adp_hig")
	public int adpHig;                                   //高度
	@Column(name="adp_code",length=10)
	public String adpCode;                               //广告位代码
	@Column(name="adp_status")
	public int adpStatus;                                //广告位状态
	
}
